﻿using System;
using System.Collections.Generic;
using Zeus.Thunder.Core;

namespace SharpTrainer.Collections
{
  class GenericStack : ITestCase
  {
    public void Run()
    {
        Stack<MyEmployee> st = new Stack<MyEmployee>();
        st.Push(new MyEmployee("Jeff", 18000));
        st.Push(new MyEmployee("Neil", 15000));
        st.Push(new MyEmployee("David", 15000));

        foreach (MyEmployee item in st)
        Console.WriteLine(item);

      Console.ReadLine();
    }
  }
}
